Skip to contentSkip to conversation

New: JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

Bug 66450 [email protected] 1 participant 12 messages Jul 1, 2013 – Jan 10, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=66450

Priority: medium
Bug ID: 66450
Assignee: [email protected]
Summary: JUNIPER UVD accelerated playback of MPEG 1/2 streams
does not work
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: DRM/Radeon
Product: DRI

When playing MPEG 1 or 2 streams using mplayer (or mplayer2 or ffplay or mpv) there is no output, only black rectangle.

$vdpauinfo declares MPEG support:

MPEG1                16  9216  2048  1152
MPEG2_SIMPLE         16  9216  2048  1152
MPEG2_MAIN           16  9216  2048  1152

Output from ffmpeg shows:
Unsupported PixelFormat xvmcidct (16)
Unsupported PixelFormat xvmcmc (15)

acceleration of h264 works fine, so I conclude that UVD is initialized succesfully

Radeon Mobility HD 5850

Kernel 3.10.0, libdrm and mesa are from git master (30.06.2013)

sample file: http://samples.mplayerhq.hu/MPEG2/vid_0x80.ts

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

https://bugs.freedesktop.org/show_bug.cgi?id=66450

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Product|DRI                         |Mesa
          Component|DRM/Radeon                  |Drivers/Gallium/r600
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
                   |                            |au.de

--- Comment #1 from Alex Deucher <[email protected]> --- *** Bug 66768 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

Christian König <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #2 from Christian König <[email protected]> --- The vdpauinfo output is wrong, JUNIPER has an uvd 2.3 block and that can't decode MPEG2 in vld mode.

Going to fix that in a minute.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

--- Comment #3 from Christian König <[email protected]> --- Created attachment 82275
--> https://bugs.freedesktop.org/attachment.cgi?id=82275&action=edit
Possible fix.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

--- Comment #4 from Johannes Hirte <[email protected]> --- With this patch applied, mplayer2 crashes on mpeg2 file with:

Detected file format: MPEG-PS (MPEG-2 Program Stream) (libavformat) [mpeg @ 0x7fa7bec14cc0]max_analyze_duration 5000000 reached at 5005000 [lavf] stream 0: video (mpeg2video), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
[lavf] stream 2: audio (ac3), -aid 1
Load subtitles in .
Forced video codec: ffmpeg12vdpau
Selected video codec: MPEG-1/2 video (VDPAU acceleration) [libavcodec] Selected audio codec: ATSC A/52A (AC-3) [libavcodec]
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat xvmcidct (16)
Unsupported PixelFormat xvmcmc (15)
VIDEO: 720x480 29.970 fps 7500.0 kbps (937.5 kB/s) Aspect ratio is 1.78:1 - scaling to correct movie aspect.
VO: [vdpau] 720x480 => 853x480 MPEG2 VDPAU acceleration [vdpau] Compositing window manager detected. Assuming timing info is inaccurate.

MPlayer interrupted by signal 11 in module: check_framedrop

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

--- Comment #5 from Johannes Hirte <[email protected]> --- (In reply to comment #2)

Quoted 2 lines

The vdpauinfo output is wrong, JUNIPER has an uvd 2.3 block and that can't decode MPEG2 in vld mode.

So the wikipedia article is wrong?

"The UVD 2 features full bitstream decoding of H.264/MPEG-4 AVC, VC-1, as well as MPEG2 video streams, and in addition it also supports dual video stream decoding and Picture-in-Picture mode. This makes UVD2 full BD-Live compliant."

http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

--- Comment #6 from Christian König <[email protected]> --- (In reply to comment #5)

Quoted 4 lines

(In reply to comment #2)

Quoted 2 lines

The vdpauinfo output is wrong, JUNIPER has an uvd 2.3 block and that can't decode MPEG2 in vld mode.

Quoted 8 lines

So the wikipedia article is wrong?

"The UVD 2 features full bitstream decoding of H.264/MPEG-4 AVC, VC-1, as well as MPEG2 video streams, and in addition it also supports dual video stream decoding and Picture-in-Picture mode. This makes UVD2 full BD-Live compliant."

http://en.wikipedia.org/wiki/Unified_Video_Decoder#UVD_2

Yeah, that is complete nonsense. The MVC comment for UVD 3.0 is wrong also.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

--- Comment #7 from Christian König <[email protected]> --- Created attachment 82331
--> https://bugs.freedesktop.org/attachment.cgi?id=82331&action=edit
Possible fix v2

Update patch, should work better this time.

But please note that shader based decoding is far away from beeing perfect either.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

--- Comment #8 from Eugene Shalygin <[email protected]> --- With this patch playback works. Thank you!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

Christian König <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 66450] JUNIPER UVD accelerated playback of MPEG 1/2 streams does not work

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=66450

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #9 from Alex Deucher <[email protected]> --- *** Bug 73480 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel